const Koa = require('koa');
const router = require('koa-router')();

const app = new Koa();

router.get('/', async ctx => {
  ctx.body = {
    code: 200,
    msg: 'Hello, World!',
  }
});

app.use(router.routes());
app.listen(5000);
